/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package predictor;

import weka.core.Instances;

/**
 *
 * @author Administrator
 */
public class MainDocument {

    private final MainApp m_manager;
    private Instances m_curData = null;
    private Instances m_resultData = null;
    private String m_fullFileName = null;
    private boolean m_modifyFlag = false;

    public MainDocument(MainApp manager) {
        m_manager = manager;
    }

    private void setCurInstances(Instances data) {
        m_curData = new Instances(data);
    }

    public Instances getCurInstances() {
        return m_curData;
    }

    public void openNewInstances(Instances data) {
        this.setCurInstances(data);
        m_resultData=null;
    }

    public void setResultData(Instances resultData) {
        m_resultData = resultData;
    }

    public void setDataClassIndex(int i) {
        m_curData.setClassIndex(i);
    }

    public Instances getResultData() {
        return m_resultData;
    }

    public void setFullFileName(String fullName) {
        m_fullFileName = fullName;
    }

    public void setModifyFlag(boolean b) {
        m_modifyFlag = b;
    }

    public boolean getModifyFlag(){
        return m_modifyFlag;
    }
}
